package com.campus.shop.service;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;

import com.campus.shop.controller.web.vo.OrderFormVo;
import com.campus.shop.controller.web.vo.OrderInfoVo;
import com.campus.shop.controller.web.vo.OrderStatusVo;
import com.campus.shop.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 统一订单（支付服务）日志表 服务类
 *
 * @author xr
 * @since 2024-01-24 10:23:52
 */
public interface OrderService extends IService<Order> {

    void prePay(Integer way, String orderNo, Integer userId);

    HashMap<String, Object> createOrder(OrderFormVo orderFormVo, Integer userId);

    OrderInfoVo getOrderInfo(String orderNo,Integer userId);

    Order insertOrder(Integer userId, BigDecimal totalPrice, Integer addressId, Integer payType);

    List<OrderStatusVo> getOrderList(Integer valueOf);
}

